package com.control.qct.businesssteward.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/11/27 0027.
 */

public class OpenOrderModel {

    private CarItemsBean carItems;
    private List<DatasBean> datas;

    public CarItemsBean getCarItems() {
        return carItems;
    }

    public void setCarItems(CarItemsBean carItems) {
        this.carItems = carItems;
    }

    public List<DatasBean> getDatas() {
        return datas;
    }

    public void setDatas(List<DatasBean> datas) {
        this.datas = datas;
    }

    public static class CarItemsBean {

        private TotalBean total;
        private List<ItemsBean> items;

        public TotalBean getTotal() {
            return total;
        }

        public void setTotal(TotalBean total) {
            this.total = total;
        }

        public List<ItemsBean> getItems() {
            return items;
        }

        public void setItems(List<ItemsBean> items) {
            this.items = items;
        }

        public static class TotalBean implements Serializable{
            /**
             * count : 2
             * amount : 10
             * preferential : 0
             */

            private int count;
            private double amount;
            private double preferential;

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public double getAmount() {
                return amount;
            }

            public void setAmount(double amount) {
                this.amount = amount;
            }

            public double getPreferential() {
                return preferential;
            }

            public void setPreferential(double preferential) {
                this.preferential = preferential;
            }
        }

        public static class ItemsBean {
            /**
             * index : 0
             * type : 0
             * id : 116451
             * imageBigUrl : http://test.erp.qcterp.com/Attachs/productimgs/201803/dd576a8cb0fc4667ba2b214a8d55818c.jpg
             * imageSmallUrl : http://test.erp.qcterp
             * .com/Attachs/productimgs/201803/dd576a8cb0fc4667ba2b214a8d55818c_s.jpg
             * barcode : 112233
             * productCode : 005419
             * title : 12331331
             * unit : 包
             * categoryTitle : 特产/茶叶/白茶
             * sysPrice : 10
             * preferentialPrice : 10
             * number : 1
             * state : 已上架
             */

            private int index;
            private int type;
            private int id;
            private String imageBigUrl;
            private String imageSmallUrl;
            private String barcode;
            private String productCode;
            private String title;
            private String unit;
            private String categoryTitle;
            private double sysPrice;
            private double preferentialPrice;
            private int number;
            private String state;
            private boolean isChecked;
            private int goodsNum;

            public boolean isChecked() {
                return isChecked;
            }

            public void setChecked(boolean checked) {
                isChecked = checked;
            }

            public int getGoodsNum() {
                return goodsNum == 0 ? number : goodsNum;
            }

            public void setGoodsNum(int goodsNum) {
                this.goodsNum = goodsNum;
            }

            public int getIndex() {
                return index;
            }

            public void setIndex(int index) {
                this.index = index;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getImageBigUrl() {
                return imageBigUrl;
            }

            public void setImageBigUrl(String imageBigUrl) {
                this.imageBigUrl = imageBigUrl;
            }

            public String getImageSmallUrl() {
                return imageSmallUrl;
            }

            public void setImageSmallUrl(String imageSmallUrl) {
                this.imageSmallUrl = imageSmallUrl;
            }

            public String getBarcode() {
                return barcode;
            }

            public void setBarcode(String barcode) {
                this.barcode = barcode;
            }

            public String getProductCode() {
                return productCode;
            }

            public void setProductCode(String productCode) {
                this.productCode = productCode;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }

            public String getCategoryTitle() {
                return categoryTitle;
            }

            public void setCategoryTitle(String categoryTitle) {
                this.categoryTitle = categoryTitle;
            }

            public double getSysPrice() {
                return sysPrice;
            }

            public void setSysPrice(double sysPrice) {
                this.sysPrice = sysPrice;
            }

            public double getPreferentialPrice() {
                return preferentialPrice;
            }

            public void setPreferentialPrice(double preferentialPrice) {
                this.preferentialPrice = preferentialPrice;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }
        }
    }

    public static class DatasBean {
        /**
         * index : 0
         * type : 0
         * id : 116460
         * imageBigUrl : null
         * imageSmallUrl : null
         * barcode : 34455
         * productCode : 005427
         * title : 1233
         * unit : 包
         * categoryTitle : 特产/茶叶/HR2
         * sysPrice : 0
         * preferentialPrice : 0
         * number : null
         * state : 已上架
         */

        private int index;
        private int type;
        private int id;
        private String imageBigUrl;
        private String imageSmallUrl;
        private String barcode;
        private String productCode;
        private String title;
        private String unit;
        private String categoryTitle;
        private double sysPrice;
        private double preferentialPrice;
        private int number;
        private String state;

        public int getIndex() {
            return index;
        }

        public void setIndex(int index) {
            this.index = index;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getImageBigUrl() {
            return imageBigUrl;
        }

        public void setImageBigUrl(String imageBigUrl) {
            this.imageBigUrl = imageBigUrl;
        }

        public String getImageSmallUrl() {
            return imageSmallUrl;
        }

        public void setImageSmallUrl(String imageSmallUrl) {
            this.imageSmallUrl = imageSmallUrl;
        }

        public String getBarcode() {
            return barcode;
        }

        public void setBarcode(String barcode) {
            this.barcode = barcode;
        }

        public String getProductCode() {
            return productCode;
        }

        public void setProductCode(String productCode) {
            this.productCode = productCode;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getCategoryTitle() {
            return categoryTitle;
        }

        public void setCategoryTitle(String categoryTitle) {
            this.categoryTitle = categoryTitle;
        }

        public double getSysPrice() {
            return sysPrice;
        }

        public void setSysPrice(double sysPrice) {
            this.sysPrice = sysPrice;
        }

        public double getPreferentialPrice() {
            return preferentialPrice;
        }

        public void setPreferentialPrice(double preferentialPrice) {
            this.preferentialPrice = preferentialPrice;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }
    }
}
